<?php

require_once '../config.php';
require_once '../functions.php';

$get = $_GET['label'];
var_dump($get);
$list = book_fetch_all("select 
list.id,
list.title,
	list.picture,
	list.number,
	list.synopsis,
	list.created
from options
inner join list on list.list_isbn=options.option_isbn
where list.item={$get}");

var_dump($list);

?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/assets/css/base.css">
    <link rel="stylesheet" href="/static/assets/css/index.css">
    <link rel="stylesheet" href="/static/assets/vendors/nprogress/nprogress.css">
    <script src="/static/assets/vendors/jquery/jquery.min.js"></script>
    <script src="/static/assets/vendors/bootstrap/js/bootstrap.min.js"></script>
    <script src="/static/assets/vendors/nprogress/nprogress.js"></script>
</head>
<body>
    <script>
        NProgress.start()
    </script>
    <!-- 导航栏 -->
    <?php include 'inc/navbar.php'; ?>

    <div class="bs_list_end">
                    <!-- <ul class="bs_list_ul">
                        <?php foreach($list as $item):?>
                        <li>
                            <div class="bs_list_left">
                                <img src="<?php echo $item['picture']?>" alt="">
                            </div>
                            <div class="bs_list_right">
                                <h4><a href="/admin/common.php?common=<?php echo $item['id']; ?>"><?php echo $item['title']?></a></h4>
                                <span><?php echo $item['synopsis']?></span>
                            </div>
                            <div class="bs_list_look">
                                <span class="icomoon_icon icon-spinner9">&nbsp;<?php echo $item['number'];?> 浏览</span>
                                <span
                                    class="icomoon_icon icon-blogger spanmiddle">&nbsp;<?php echo $item['discussnum']?>评论</span>
                                <span
                                    class="icomoon_icon icon-filter">&nbsp;时间：<?php echo list_date($item['created'])?></span>
                            </div>
                        </li>
                        <?php endforeach?>
                    </ul> -->
                </div>
    <script>
        NProgress.done()
    </script>
</body>
</html>